<?php

class Cw_Widget extends WP_Widget {

	/**
	 * Register widget with WordPress.
	 */
	function __construct() 
	{
		parent::__construct(
			'cw_widget', // Base ID
			'Cleverweb widget', // Name
			array( 'description' => __( 'Cleverweb widget', 'cleverweb' ), ) // Args
		);
	}

	/* Display widget */
	public function widget( $args, $instance ) 
	{
	   echo $args['before_widget'];

	   echo $args['after_widget'];
	}

	/**
	 * Back-end widget form.
	 *
	 * @see WP_Widget::form()
	 *
	 * @param array $instance Previously saved values from database.
	 */
	public function form( $instance ) 
	{
	   
	}

	/**
	 * Sanitize widget form values as they are saved.
	 *
	 * @see WP_Widget::update()
	 *
	 * @param array $new_instance Values just sent to be saved.
	 * @param array $old_instance Previously saved values from database.
	 *
	 * @return array Updated safe values to be saved.
	 */
	public function update( $new_instance, $old_instance ) {
	   $instance = array();

	   return $instance;
	}

}